package test;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class test {
    public static void main(String[] args) {
        String remoteRepoPath = "git@gitee.com:wang-many/wangnaw.git"; //git地址
//        String keyPath = "C:\\Users\\86136\\.ssh\\id_rsa"; //私钥文件
        String keyPath = "C:\\Users\\lenovo\\.ssh\\id_ed25519";
        FileInputStream fis = null;
        try {
            fis = new FileInputStream("somefile.txt");
            int data;
            while ((data = fis.read()) != -1) {
                // Do something with data
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (fis != null) {
                    fis.close();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
            System.out.println("");
    }
}
